﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace FIS.iDET.TemplateCreator
{
    public class GlobalConstants
    {
        /* VARIABLES */

        // username
        public static string Username = "No Name";

        //version
        public static string stringVersion = "FIS.iDET Template Creator Tool \nVersion 2.0.0 Pre-Final";
        // data columns info

        public static void OptionInit()
        {
            // get user name
            Username = RegistryService.GetValue(REGISTRY_USER_NAME) == null ? "No Name" : RegistryService.GetValue(REGISTRY_USER_NAME).Trim();

            // date format index
        }


        /*** CONSTANTS ***/
        // secret key used to generate serial number from machine ID
        public const string SERIAL_SECRET_KEY = "aed45dba1f73080de226c193d3f9d605";

        // Company name, mainly used for folder naming
        public const string COMPANY_NAME = "FPT BPO iDET";

        /* registry */
        // Default path of registry to store serial number
        public const string REGISTRY_PATH = "Software\\" + COMPANY_NAME;
        // serial number string name
        public const string REGISTRY_SERIAL_NUMBER_KEY = "Serial";
        // user name
        public const string REGISTRY_USER_NAME = "UN";
        // no user name
        public const string REGISTRY_USER_NAME_NO_NAME = "No name";
    }
}
